package com.gwu.principle.singleresponsibility;

public class SingleResponsibility3 {
    public static void main(String[] args) {
        Vehicle2 vehicle = new Vehicle2();
        vehicle.run("Motor");
        vehicle.runAir("Plane");
        vehicle.runWater("Boat");
    }
}

class Vehicle2 {
    public void run(String vehicle) {
        System.out.println(vehicle + " running ...");
    }

    public void runAir(String vehicle) {
        System.out.println(vehicle + " running in the air...");
    }

    public void runWater(String vehicle) {
        System.out.println(vehicle + " running in the water...");
    }
}